<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>网站授权信息</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="{{ asset('/vendor/laravel-admin/AdminLTE/bootstrap/css/bootstrap.min.css') }}">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{{ asset('/vendor/laravel-admin/font-awesome/css/font-awesome.min.css') }}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{{ asset('/vendor/laravel-admin/AdminLTE/dist/css/AdminLTE.min.css') }}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>
<body style="background-color: #ecf0f5">
<div class="content-wrapper" style="margin-left: 0px">
    <section class="content-header">
        <h1>
            网站授权
            <small>#{{ config('version.version') }}</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">网站授权信息</li>
        </ol>
    </section>

    <div class="pad margin no-print">
        <div class="callout callout-danger" style="margin-bottom: 0!important;">
            <h4><i class="fa fa-info"></i> 请注意:</h4>
            如果您与您所在的公司企业未得到授权,请立即停止使用本程序并与我们联系获取授权!
        </div>
    </div>

    <section class="invoice">
        <div class="row">
            <div class="col-xs-12">
                <h2 class="page-header">
                    <i class="fa fa-globe"></i> 中创商成授权管理
                    <small class="pull-right">授权到期时间: {{ $oms_order['allow_overdue_at'] }}</small>
                </h2>
            </div>
        </div>
        <div class="row invoice-info">
            <div class="col-sm-6 invoice-col">
                <strong>授权使用单位</strong>
                <address>
                    @foreach(config('copyright.authorization_company') as $company)
                        {{ $company }}<br>
                    @endforeach
                </address>
            </div>
            <div class="col-sm-6 invoice-col">
                <b>OA订单号 #{{ $oms_order['id'] ?? '暂无授权' }}</b><br>
                <br>
                <b>OA订单名:</b> {{ $oms_order['name'] }}<br>
                <b>网站制作人员:</b> {{ $oms_user['name'] }}<br>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-12 table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>序号</th>
                        <th>软著 名称</th>
                        <th>软著 编号</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach(config('copyright.serial') as $key=> $value)
                        <tr>
                            <td>{{ $key+1 }}</td>
                            <td>{{ $value['name'] }}</td>
                            <td><a target="_blank" href="{{ $value['image'] }}">{{ $value['serial'] }}</a>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>

        @if (config('app.debug'))
            <div class="row">
                <div class="col-xs-12">
                    <p class="lead">{{ config('version.version') }}更新:
                        <small class="label label-success">{{ array_first(config('version.history'))['type'] }}</small>
                    </p>
                    @foreach(array_first(config('version.history'))['infos'] as $key=>$log)
                        <p class="text-muted well well-sm no-shadow" style="margin-bottom: 6px;">
                            {{ $key+1 }}. {{ $log }}
                        </p>
                    @endforeach
                </div>
            </div>
        @endif

        <div class="row no-print">
            <div class="col-xs-12">
                <a href="/" class="btn btn-success pull-right">
                    <i class="fa fa-home"></i> 返回首页
                </a>
            </div>
        </div>
    </section>
    <!-- /.content -->
    <div class="clearfix"></div>
</div>
</body>
</html>
